home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 2 / Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso / Pearls / comm / Envoy / Talk / tkbase.h < prev    next >
C/C++ Source or Header  |  1994-04-17  |  2KB  |  58 lines

  1. #ifndef TALKBASE_H
  2. #define TALKBASE_H
  3.  
  4. /*****************************************************************************/
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <exec/lists.h>
  9. #include <exec/semaphores.h>
  10. #include <exec/execbase.h>
  11. #include <utility/tagitem.h>
  12. #include <dos/dos.h>
  13. #include <dos/dosextens.h>
  14. #include <dos/dostags.h>
  15. #include <dos.h>
  16. #include <envoy/nipc.h>
  17.  
  18. /*****************************************************************************/
  19.  
  20. struct TALKSvc
  21. {
  22.     struct Library           TALK_Lib;
  23.     struct Library          *TALK_DOSBase;
  24.     struct Library          *TALK_NIPCBase;
  25.     struct ExecBase         *TALK_SysBase;
  26.     struct Library          *TALK_UtilityBase;
  27.     APTR                     TALK_Entity;
  28.     BPTR                     TALK_SegList;
  29.  
  30.     struct SignalSemaphore   TALK_OpenLock;
  31. };
  32.  
  33. #define ASM           __asm
  34. #define REG(x)        register __ ## x
  35.  
  36. #define TALKBase       ((struct TALKSvc *)getreg(REG_A6))
  37. #define SysBase       TALKBase->TALK_SysBase
  38. #define DOSBase       TALKBase->TALK_DOSBase
  39. #define UtilityBase   TALKBase->TALK_UtilityBase
  40. #define NIPCBase      TALKBase->TALK_NIPCBase
  41.  
  42. /*****************************************************************************/
  43.  
  44. ULONG __saveds ASM StartService(REG(a0) struct TagItem *st_list);
  45.  
  46. VOID ASM Server(REG(a0) STRPTR userName,
  47.                 REG(a1) STRPTR password,
  48.                 REG(a2) STRPTR entityName);
  49.  
  50. VOID ASM FlushLib(VOID);
  51.  
  52. /*****************************************************************************/
  53.  
  54. kprintf(STRPTR,...);
  55. sprintf(STRPTR,...);
  56.  
  57. #endif /* TALKBASE */
  58.